<template>
    <a-spin :spinning="loading">
      <AWM-check-work
        v-if="userId"
        ref="checkWork"
        :userId="userId"
      ></AWM-check-work>
    </a-spin>
</template>

<script>
import { AWMCheckWork } from '@/components'

export default {
  props: {
    loading: {
      type: Boolean,
      default: () => false
    },
   
  },
  data () {
    return {
      timeout:null,
      fetching:false,
      workList:[],
      userId:null
    }
  },
  components:{
    AWMCheckWork,
  },
  created () {
    
    let userId = this.$router.history.current.params.userId
    if(userId){
      console.log(userId)
      this.userId = Number(userId)
    }
  },
  methods:{
   
    
  },
}
</script>
